package cn.hairui.blog.dao;

import cn.hairui.blog.entity.Link;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 友情链接表 Mapper 接口
 * </p>
 *
 * @author laoganbu
 * @since 2020-04-12
 */
@Mapper
public interface LinkMapper extends BaseMapper<Link> {

    @Select("select id,webname,url,webicon,webmaster,type,status from link order by createtime desc")
    List<Map> list();
}
